package com.sf.osms.dep.domain;

/**
 * handover
 */
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Polymorphism;
import org.hibernate.annotations.PolymorphismType;

import com.sf.novatar.base.domain.LongIdBean;


@Entity
@Table(name = "wbs_tt_handover_file_map")
@Polymorphism(type = PolymorphismType.EXPLICIT)
public class HandoverFileMap extends LongIdBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private Long id; 
	/**
	 * 代理ID
	 */
	@Column(name = "AGENT_ID")
	private Long agentId; 
	/**
	 * 映射规则("ddd,2！cc,3+2")
	 */
	@Column(name = "MAP_RULE")
	private String mapRule;
	/**
	 * 列分隔符
	 */
	@Column(name = "COLUMN_SEP")
	private String columnSep; 
	/**
	 * 文件编码
	 */
	@Column(name = "ENCODING")
	private String encoding; 
	/**
	 * 行分隔符
	 */
	@Column(name = "LINE_SEP")
	private String lineSep; 
	/**
	 * 使用状态
	 */
	@Column(name = "USE_FLAG")
	private String useFlag; 
	/**
	 * 文件后缀
	 */
	@Column(name = "FILE_SUFFIX")
	private String fileSuffix;
	/**
	 * 文件前缀
	 */
	@Column(name = "FILE_PREFIX")
	private String filePrefix;
	/**
	 * 数据启始行
	 */
	@Column(name = "DATA_LINE")
	private Integer dataLine; 
	
	
	/**
	 * 网点
	 */
	@Column(name = "NETWORK")
	private String network;
	
	/**
	 * 国家代码
	 */
	@Column(name = "COUNTRYCODE")
	private String countryCode;
	
	

	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public Long getAgentId() {
		return agentId;
	}


	public void setAgentId(Long agentId) {
		this.agentId = agentId;
	}


	public String getMapRule() {
		return mapRule;
	}


	public void setMapRule(String mapRule) {
		this.mapRule = mapRule;
	}


	public String getColumnSep() {
		return columnSep;
	}


	public void setColumnSep(String columnSep) {
		this.columnSep = columnSep;
	}


	public String getEncoding() {
		return encoding;
	}


	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}


	public String getLineSep() {
		return lineSep;
	}


	public void setLineSep(String lineSep) {
		this.lineSep = lineSep;
	}


	public String getUseFlag() {
		return useFlag;
	}


	public void setUseFlag(String useFlag) {
		this.useFlag = useFlag;
	}


	public String getFileSuffix() {
		return fileSuffix;
	}


	public void setFileSuffix(String fileSuffix) {
		this.fileSuffix = fileSuffix;
	}


	public String getFilePrefix() {
		return filePrefix;
	}


	public void setFilePrefix(String filePrefix) {
		this.filePrefix = filePrefix;
	}


	public Integer getDataLine() {
		return dataLine;
	}


	public void setDataLine(Integer dataLine) {
		this.dataLine = dataLine;
	}


	public String getNetwork() {
		return network;
	}


	public void setNetwork(String network) {
		this.network = network;
	}


	public String getCountryCode() {
		return countryCode;
	}


	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}


	@Override
	public String toString() {
		return "HandoverFileMap [id=" + id + ", agentId=" + agentId
				+ ", mapRule=" + mapRule + ", columnSep=" + columnSep
				+ ", encoding=" + encoding + ", lineSep=" + lineSep
				+ ", useFlag=" + useFlag + ", fileSuffix=" + fileSuffix
				+ ", filePrefix=" + filePrefix + ", dataLine=" + dataLine
				+ ", network=" + network + ", countryCode=" + countryCode + "]";
	}
	
	
}
